/**   
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-03-01 22:19:08  
 * Copyright (c) 2015- -版权所有     
 */

package com.joysuch.wwyt.edu.repository;

import java.util.List;

import com.joysuch.wwyt.edu.entity.EduExamCourse;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;

/**
 * EduExamCourseDao
 *
 */
public interface EduExamCourseDao extends JpaRepository<EduExamCourse, Long>, QuerydslPredicateExecutor<EduExamCourse> {
    public Page<EduExamCourse> findAll(Specification<EduExamCourse> spec, Pageable pageable);

    public EduExamCourse save(EduExamCourse bean);

    public void delete(EduExamCourse bean);

    int deleteByExamId(Long examId);

    List<EduExamCourse> findByExamId(Long examId);

    List<EduExamCourse> findByCourseId(Long courseId);
}
